package jd.client.get;

import jd.client.Response;
import jd.client.exception.ResponseParseException;

/**
 * @author Denis Migol
 * 
 */
public class GetRandomIPResponse extends Response {

	private String ip;

	@Override
	public Response parse(final String response) throws ResponseParseException {
		setIP(response);
		return super.parse(response);
	}

	/**
	 * @param ip
	 *            the ip to set
	 */
	protected void setIP(final String ip) {
		if (ip != null) {
			this.ip = ip.trim();
		} else {
			this.ip = ip;
		}
	}

	/**
	 * @return the ip
	 */
	public String getIP() {
		return ip;
	}

}
